#!/bin/bash
cur=$(dirname $(readlink -f "$0"))

# git config --global --add safe.directory 'K:/ventoy'
git fetch; git pull
mkdir -p  $cur/../iso/{_auth,_livecd,_winpe,deb_debian,deb_ubuntu,rpm_rhel,rpm_openEuler/cust}

##SYSCONFIG#################
export LANG=en_US.UTF-8
# echo "list volume" |diskpart
# echo "list disk" |diskpart
# echo -e "sel disk 2 \nlist part" |diskpart

# echo "list disk" |diskpart 2>&1 |grep GB
ret=$(echo "list disk" |diskpart 2>&1); echo "$ret" #|/usr/bin/grep GB
# ret=$(echo "list disk" |diskpart 2>&1); echo "$ret" |awk '{print $2}' #|egrep GB
echo sleep 2; sleep 3